package com.example.demo_feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

//IFeignServiceHystrix 类作为熔断处理文件
@FeignClient(value="PROVIDER",fallback = IFeignServiceHystrix.class)
public interface IFeignService {

    @RequestMapping("/demo/hi")
    String sayHi(@RequestParam(value="name") String name);

    @RequestMapping("/demo/hello")
    String sayHello(@RequestParam(value="name") String name);

}
